Skip to content

Conversation

ashtum
Copy link
Collaborator

@ashtum ashtum commented Oct 21, 2025

No description provided.

@cppalliance-bot
Copy link

An automated preview of the documentation is available at https://68.http-io.prtest2.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2025-10-21 13:43:40 UTC

if(ec == http_proto::condition::need_more_input)
{
// specific to http_io::async_read_some
if(total_bytes_ != 0 && condition_(pr_))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a change unrelated to the test tools?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR contains two commits: the first adds testing tools, and the second adds tests for read operations.

system::error_code
make_error_code(error e) noexcept
{
static detail::error_cat_type const cat{};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we put this in the compiled lib these days?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided to keep testing tools header only as its usage is optional.

*/
class handler
{
boost::optional<system::error_code> ec_;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need optional here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used in any_handler where the handler might complete with an error or succeed.


handler(handler&& other)
: ec_(other.ec_)
, invoked_(boost::exchange(other.invoked_, true))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does boost::exchange add another dependency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boost::exchange is in core.

rts::context rts_ctx;
http_proto::install_parser_service(rts_ctx, {});

// async_read completes when the parser reads
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes this looks much better

@ashtum ashtum force-pushed the port-beast-test branch 2 times, most recently from 2541e0c to b37593f Compare October 22, 2025 06:35
@cppalliance-bot
Copy link

cppalliance-bot commented Oct 22, 2025

An automated preview of the documentation is available at https://68.beast2.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2025-10-22 08:15:20 UTC

@ashtum ashtum force-pushed the port-beast-test branch 8 times, most recently from 0b9dd61 to 3bfe49b Compare October 22, 2025 07:57
@ashtum ashtum merged commit bde9f63 into cppalliance:develop Oct 22, 2025
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants